package com.xkdx.guangguang.fragment.my.setup;

import android.content.Context;

import com.xkdx.guangguang.fragment.user.UserSharePrefence1;
import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class PointAction extends AbsAction {
	Context context;

	public PointAction(Context context) {
		this.context = context;
		url = IConstants.USR_URL;
	}

	@Override
	public void constructRequest() {
        UserSharePrefence1 su = new UserSharePrefence1(context, IConstants.SP_USER_NEW);
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", su.getId());
		map.put("logintoken", su.getLogintoken());
        map.put("pageindex", "1");
        map.put("pagesize", "100");
		String json = constructJson(map);
		Parameter parameter = new Parameter("User", "ScoreLog", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
